package com.qianzhu8.kfc.boot.request;

import com.qianzhu8.kfc.boot.constant.HttpMethodConstants;
import com.qianzhu8.kfc.boot.response.BaseResponse;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * request 基类
 *
 * @author xuyanjun
 * @date 2020/4/10
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class BaseRequest<T extends BaseResponse> implements Serializable {

    /**
     * 平台id
     */
    private Integer platformId;

    /**
     * UNIX 时间戳
     */
    private Long timestamp;

    /**
     * 签名
     */
    private String sign;

    /**
     * action
     */
    private String action;

    /**
     * method {@link HttpMethodConstants}
     */
    private String method;

    /**
     * responseClass
     *
     * @return responseClass
     */
    public Class<T> getResponseClass() {
        return null;
    }
}
